package com.android.sha.common;

import android.util.DisplayMetrics;
import android.view.WindowManager;

public class MobileCommon {
	public static int getMobileWidth(WindowManager  wm){
		DisplayMetrics dm =new DisplayMetrics();
		wm.getDefaultDisplay().getMetrics(dm);
		return dm.widthPixels;
	}
	
	public static int getMobileHeight(WindowManager  wm){
		DisplayMetrics dm =new DisplayMetrics();
		wm.getDefaultDisplay().getMetrics(dm);
		return dm.heightPixels;
	}
}
